package edu.hunau.pojo;

/**
 * 学生类
 */
public class Student {
    //学号
    private String id;
    //姓名
    private String name;
    //专业
    private String major;

    public Student() {
    }

    public Student(String id, String name, String major) {
        this.id = id;
        this.name = name;
        this.major = major;
    }

    //TODO 2: 重写 equals、hashCode、toString方法


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }
}
